<?php

App::import('Core', 'l10n');
	
class AppController extends Controller
{
    var $view = 'Theme';
    var $theme = '';
    var $components = array('Auth');
    
    function beforeFilter()
    {
    	$this->L10n = new L10n();
    	$this->L10n->get("eng");

    	$this->Auth->allow('display');
        $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'dashboard');
        $this->theme = Configure::read('Website.theme');
    }
}
?>